<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script type="text/javascript">
    var i;
    var result1=0;
    var result2=0;
    for(i=5;i<=70;i++){
        if(i%2==0){
            result1=result1+i;
        }
        else{
            result2=result2+i;
        }
    }
    document.write("<div>5到70的奇数和是："+result2+"</div>");
    document.write("<div>5到70的偶数和是："+result1+"</div>");
    </script>
</head>
<body>
    
</body>
</html>